package com.guigui.gulimall.product.feign;

import com.guigui.common.to.CouponSaveTo;
import com.guigui.common.utils.R;
import com.guigui.gulimall.product.to.SpuBoundsTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author ：xin
 * @date ：Created in 2021/11/4 14:49
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    /**
     * 远程调用保存积分信息
     * @param spuBoundsTo to
     * @return R
     */
    @PostMapping("/coupon/spubounds/saveBounds")
    R saveBounds(@RequestBody SpuBoundsTo spuBoundsTo);


    @PostMapping("/coupon/spubounds/saveCouponSaveTo")
    R saveReductionLadderMemberPrice(@RequestBody List<CouponSaveTo> couponSaveTo);

}
